package com.youku.adSDK.Utils
{
   import flash.net.SharedObject;
   
   public class AdFsoTools extends Object
   {
      
      public function AdFsoTools() {
         super();
      }
      
      public static function getADRefreshInfo() : Object {
         var _loc2_:SharedObject = null;
         var _loc1_:Object = {};
         try
         {
            _loc2_ = SharedObject.getLocal("YOUKU_FSO_PROXY","/");
            if((_loc2_.data) && (_loc2_.data.hasOwnProperty("adRefreshInfo")))
            {
               _loc1_ = _loc2_.data["adRefreshInfo"];
            }
         }
         catch(error:Error)
         {
         }
         return _loc1_;
      }
      
      public static function saveADRefreshInfo(param1:Object) : void {
         var _loc2_:SharedObject = null;
         try
         {
            _loc2_ = SharedObject.getLocal("YOUKU_FSO_PROXY","/");
            _loc2_.data["adRefreshInfo"] = param1;
            _loc2_.flush();
         }
         catch(error:Error)
         {
         }
      }
      
      public static function saveADHoldingInfo(param1:Object) : void {
         var _loc2_:SharedObject = null;
         try
         {
            _loc2_ = SharedObject.getLocal("YOUKU_FSO_PROXY","/");
            _loc2_.data["adHoldingInfo"] = param1;
            _loc2_.flush();
         }
         catch(error:Error)
         {
         }
      }
      
      public static function getADHoldingInfo() : Object {
         var _loc2_:SharedObject = null;
         var _loc1_:Object = {};
         try
         {
            _loc2_ = SharedObject.getLocal("YOUKU_FSO_PROXY","/");
            if((_loc2_.data) && (_loc2_.data.hasOwnProperty("adHoldingInfo")))
            {
               _loc1_ = _loc2_.data["adHoldingInfo"];
            }
         }
         catch(error:Error)
         {
         }
         return _loc1_;
      }
      
      public static function saveADTimeInfo(param1:Number) : void {
         var _loc2_:SharedObject = null;
         try
         {
            _loc2_ = SharedObject.getLocal("YOUKU_FSO_PROXY","/");
            _loc2_.data["ADTime"] = param1;
            _loc2_.flush();
         }
         catch(error:Error)
         {
         }
      }
      
      public static function getADTimeInfo() : Number {
         var _loc2_:SharedObject = null;
         var _loc1_:Number = 0;
         try
         {
            _loc2_ = SharedObject.getLocal("YOUKU_FSO_PROXY","/");
            if((_loc2_.data) && (_loc2_.data.hasOwnProperty("ADTime")))
            {
               _loc1_ = _loc2_.data["ADTime"];
            }
         }
         catch(error:Error)
         {
         }
         return _loc1_;
      }
   }
}
